from PO项目实战.对象层.upload_file_page import UploadFilePage


class UploadFileBusiness(UploadFilePage):
    
    def __init__(self, driver):
        super().__init__(driver)

    # 打开用户管理页面
    def open_upload_file_page(self):
        self.driver.get(self.url)

    # 上传文件
    def upload_file(self, file_path):
        self.upload_file_input_ele.send_keys(file_path)

    # 获取提示信息
    def get_alert_msg(self):
        return self.alert_ele.text




